package com.kakaluote.dbsharding.simple.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface UserDao {
    /**
     * 插入名字
     * @return
     */
    @Insert("insert into tb_user(name) values(#{name})")
    int insertUser(@Param("name") String name);
}
